﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="MemorandumForm.aspx.cs" Inherits="App_System_MemorandumForm" Title="备忘录" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script language="javascript" event="onunload" for="window">
        if( opener.window.redrawCalendarMemo )
            opener.window.redrawCalendarMemo();
    </script>
    <div>
          <table class="table_border_line">
          <tr>
                  <th colspan="4" align="left" style="text-align: left;">

                      <script language="javascript">
        (new TitleBar('SearchBar', '备忘录')).showBar();
                      </script>

                  </th>
              </tr>
          <tr>
          <td style="white-space:nowrap; width:5% ; text-align:left; height:25px"></td>
          <td style="white-space:nowrap; width:10% ; text-align:center;">
                            日期
                            
                            </td>
          <td style="white-space:nowrap; width:50% ; text-align:left;">
              <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"><<</asp:LinkButton>
                              
                                <asp:Label ID="lblDate" runat="server"></asp:Label>
              <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">>></asp:LinkButton></td>
          <td style="white-space:nowrap; width:35% ; text-align:left;"></td>
          </tr>
              <tr>
                  <td style="width: 5%; white-space: nowrap; text-align: left">
                  </td>
                  <td style="width: 10%; white-space: nowrap; text-align: center">
                      时间</td>
                  <td style="width: 50%; white-space: nowrap; text-align: left">
                         
                                 <asp:DropDownList ID="hour" runat="server">
                                 </asp:DropDownList>&nbsp; 时 &nbsp;
                                 <asp:DropDownList ID="min" runat="server">
                                 </asp:DropDownList>
                                 &nbsp; 分
                  </td>
                  <td style="width: 35%; white-space: nowrap; text-align: left">
                  </td>
              </tr>
              <tr>
                  <td style="width: 5%; white-space: nowrap; text-align: left">
                  </td>
                  <td style="width: 10%; white-space: nowrap; text-align: center">
                      标题</td>
                  <td style="width: 50%; white-space: nowrap; text-align: left">
                                 <asp:TextBox ID="title" runat="server" Width="256px" MaxLength="100"></asp:TextBox></td>
                  <td style="width: 35%; white-space: nowrap; text-align: left">
                  </td>
              </tr>
              <tr>
                  <td style="width: 5%; white-space: nowrap; text-align: left">
                  </td>
                  <td style="width: 10%; white-space: nowrap; text-align: center">
                      内容
                  </td>
                  <td style="width: 50%; white-space: nowrap; text-align: left">
                                 <asp:TextBox ID="memo" runat="server" TextMode="MultiLine" Width="100%" MaxLength="400" Rows="5"></asp:TextBox></td>
                  <td style="width: 35%; white-space: nowrap; text-align: left">
                  </td>
              </tr>
              <tr>
                  <td style="width: 5%; white-space: nowrap; text-align: left">
                  </td>
                  <td style="width: 10%; white-space: nowrap; text-align: center">
                      状态</td>
                  <td style="width: 50%; white-space: nowrap; text-align: left">
                                <asp:CheckBox ID="remind" runat="server" Text="自动提醒" /></td>
                  <td style="width: 35%; white-space: nowrap; text-align: left">
                  </td>
              </tr>
          </table>
          <br />
          <table class="table_border_line">
          <tr>
          <td style="text-align:center; width:65%">
                              
                                <asp:Button ID="btnAdd" runat="server" Text="登记" Width="83px" OnClick="btnAdd_Click" CssClass="button" />
                                &nbsp; &nbsp; &nbsp; &nbsp;<asp:Button ID="close" runat="server"
                                    Text="关闭" Width="83px" OnClick="close_Click" CssClass="button"  /></td>
            <td style="width:35%"></td>
          </tr>
          </table>
          <br />
          <table class="table_border_line">
              
              <tr>
              <td style="height: 130px" valign="top"><asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                        CssClass="GridView_table" OnRowDataBound="GridView1_RowDataBound"
                        OnRowDeleting="GridView1_OnRowDeleting" OnRowEditing="GridView1_OnRowEditing">
                        <Columns>
                            <asp:BoundField DataField="MemoTime" HeaderText="时间">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="40%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MemoTitle" HeaderText="标题">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="40%" />
                            </asp:BoundField>
                            <asp:CommandField ButtonType="Image" EditImageUrl="~/images/edit.jpg" EditText="编辑"
                                HeaderText="编辑" ShowEditButton="True">
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                <ItemStyle CssClass="GridView_item_center" Width="5%" />
                            </asp:CommandField>
                            <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="10%" />
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                        ImageUrl="~/images/delete.jpg" OnClientClick="return confirm('确定删除吗？')" Text="" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField Visible="False">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RowId") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="RowId" runat="server" Text='<%# Bind("RowId") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
          
                </td>
              </tr>
          </table>
    </div>
</asp:Content>